import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/display.css'

import axios from './axios'
import emitter from './emitter'

const app = createApp(App)

app.config.globalProperties.$http = axios
app.config.globalProperties.$emitter = emitter

app.use(createPinia())
app.use(ElementPlus)
app.use(router)

app.mount('#app')
